package com.wkr.order.feignclient;

import com.wkr.common.CommonResponse;
import com.wkr.order.service.fallback.OrderFallBackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "order", fallback = OrderFallBackService.class)
public interface OrderFeignClient {
    @PostMapping("/order/train/create")
    CommonResponse<Boolean> createTrainOrder();
    @PostMapping("/order/train/hi")
    CommonResponse<String> hi();
    @PostMapping("/order/train/test")
    CommonResponse<Boolean> testForTimeOut();
}
